﻿function s_publish(){
		var isSuccess = false;
		$.ajax({
			type: "POST",
			url: "/provider/publishstore.htm",
			async: false,
			dataType: "text",
			success: function(data){
				if(data != "" && data == 1){
					isSuccess = true;
				}
			},
			error: function(){
				//alert("error");
			}
		});
		if(isSuccess){
			easyDialog.open({
				container : {
					header : '提示',
					content : '<p class="status_ture">发布成功!</p>',
					yesFn : displayPub(),
					noFn : false
				}
			});
		}else{
			easyDialog.open({
	    		container : {
					header : '提示',
					content : '<p class="status_ture s_false">发布失败!</p>',
					yesFn : false,
					noFn : false
	    		}
	    	});
		}
	}

function displayPub(){
	document.getElementById("publish").style.display = "none";
	
	$(".setup_main .ture").hide();
}